Search
Shape Constructor (ElementTemplate[], ElementTemplate[], ElementTemplate[], FillMode, String, ShapeDecoration[])
See Also
 





Initializes a new instance of the Shape class with the specified outline, decorations, text area and id.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public Shape (
    ElementTemplate[] elements,
    ElementTemplate[] decorations,
    ElementTemplate[] textArea,
    FillMode fillMode,
    string id,
    ShapeDecoration[] closedDecorations
)

Visual Basic  Copy Code

Public New ( _
    elements() As ElementTemplate, _
    decorations() As ElementTemplate, _
    textArea() As ElementTemplate, _
    fillMode As FillMode, _
    id As String, _
    closedDecorations() As ShapeDecoration _
)

 Parameters

elements

An array of shape template elements that define the outline of a shape. Can contain lines, arcs and Bézier curves.

decorations

An array of shape template elements that define shape decorations. Can contain lines, arcs and Bézier curves. Decorations are visual elements that do not take part in hit testing and clipping.

textArea

An array of shape template elements that define the region of a node in which text is laid out and rendered. Can contain lines, arcs and Bézier curves. Latter two are approximated to polygons by the text-formatting algorithm.

fillMode

Specifies how areas are filled if the outline path intersects itself.

id

The string identifier of the new shape.

closedDecorations

An array of ShapeDecoration objects.

 See Also